import {
	http
} from '@/utils/request.js'
// 类型列表
export const classlist = (data) => {
	return http.post('/goods/classlist', data)
}
//商品列表
export const goodslist = (data) => {
	return http.post('/goods/goodslist', data)
}
// 商品详情
export const goodsfile = (data) => {
	return http.post('/goods/goodsfile', data)
}
// 加入购物车
export const addcart = (data) => {
	return http.post('/goods/addcart', data)
}
// 购物车列表
export const cartlist = (data) => {
	return http.post('/goods/cartlist', data)
}
// 预定营位信息
export const myyingwei = (data) => {
	return http.post('/goods/myyingwei', data)
}

// 默认地址
export const addressfile = (data) => {
	return http.post('/goods/addressfile', data)
}
// 退押金
export const addorder = (data) => {
	return http.post('/goods/addorder', data)
}
// 订单列表
export const orderlist = (data) => {
	return http.post('/goods/orderlist', data)
}
// 订单详情
export const orderfile = (data) => {
	return http.post('/goods/orderfile', data)
}
// 支付订单
export const payorder = (data) => {
	return http.post('/goods/payorder', data)
}
// 删除购物车

export const delcart = (data) => {
	return http.post('/goods/delcart', data)
}
export const shopinit = (data) => {
	return http.post('/index/shop', data)
}
// 确认收货
export const changstatus = (data) => {
	return http.post('/goods/changstatus', data)

}
export const allshop = (data) => {
	return http.post('/goods/allshop', data)
}